<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script>
window.onload = function()
{
	var str = 'apc xpc bpc kpc ';
	var re=/[abc]pc/g;
	
	alert(str.match(re));
};
</script>
</head>

<body>
<textarea name="" id="txt1" cols="30" rows="10"></textarea> <br>
<input type="button" id="btn1" value="过滤"><br>
<textarea name="" id="txt2" cols="30" rows="10"></textarea>
</body>
</html>
